package core

import (
	"server/im/action"
	"server/im/entity"
	"server/im/protocol"
)

type RouteAction func(request entity.ServiceContext)

var RoutesMap = map[uint16]RouteAction{
	protocol.ReqEcho:           action.ActionEcho,
	protocol.ReqChatroomMember: action.ActionChatroomMember,
	protocol.ReqChatroomMsg:    action.ActionChatroomMsg,
	protocol.ReqPrivateChatMsg: action.ActionPrivateMsg,
}
